package tmall.portal.spring;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.lang.Nullable;

public class TestBeanPostProcessor implements BeanPostProcessor {


     public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
         System.out.println("TestBeanPostProcessor执行前");
        return bean;
    }


    @Nullable
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("TestBeanPostProcessor执行后");
        return bean;
    }
}
